

set(PLATFORM_DIR  ${CMAKE_CURRENT_LIST_DIR})
set(Realm_DIR "${PLATFORM_DIR}/thirdparty/realm-core/${OHOS_ARCH}/share/cmake/Realm")
set(OPENSSL_ROOT_DIR "${PLATFORM_DIR}/thirdparty/openssl_1_1_1w/${OHOS_ARCH}")
set(OPENSSL_INCLUDE_DIR "${OPENSSL_ROOT_DIR}/include")
set(OPENSSL_LIBRARY_DIR "${OPENSSL_ROOT_DIR}/lib")
set(OPENSSL_CRYPTO_LIBRARY "${OPENSSL_LIBRARY_DIR}/libcrypto.so.1.1")
set(OPENSSL_LIBRARIES "${OPENSSL_LIBRARY_DIR}/libssl.so;${OPENSSL_LIBRARY_DIR}/libcrypto.so")
set(OPENSSL_SSL_LIBRARY "${OPENSSL_LIBRARY_DIR}/libssl.so.1.1")
add_library(OpenSSL::SSL SHARED IMPORTED)
set_target_properties(OpenSSL::SSL PROPERTIES
    IMPORTED_LOCATION "${OPENSSL_SSL_LIBRARY}"
    INTERFACE_INCLUDE_DIRECTORIES "${OPENSSL_INCLUDE_DIR}"
)

add_library(OpenSSL::Crypto SHARED IMPORTED)
set_target_properties(OpenSSL::Crypto PROPERTIES
    IMPORTED_LOCATION "${OPENSSL_CRYPTO_LIBRARY}"
    INTERFACE_INCLUDE_DIRECTORIES "${OPENSSL_INCLUDE_DIR}"
)

set(ZLIB_ROOT "${PLATFORM_DIR}/thirdparty/zlib/${OHOS_ARCH}")
set(LibUV_INCLUDE_DIR "${PLATFORM_DIR}/thirdparty/libuv/${OHOS_ARCH}/include")